package com.kymatrix.kycarbon.xsmd.system.server.model.form.config;

import com.kymatrix.kycarbon.xsmd.common.enums.EnableTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author liujie
 * @date 2024-03-02
 */
@ApiModel("更新系统配置")
@Data
public class UpdateSystemConfigReq {

    @ApiModelProperty("id")
    @NotEmpty(message = "id不能为空")
    private String id;
    
    @ApiModelProperty("组名")
    @NotEmpty(message = "组名不能为空")
    private String groupName;

    @ApiModelProperty("配置key")
    @NotEmpty(message = "配置key不能为空")
    private String configKey;

    @ApiModelProperty("配置值")
    @NotEmpty(message = "配置值不能为空")
    private String configValue;

    @ApiModelProperty(value = "排序 数字越小越靠前显示", example =  "0")
    @NotNull(message = "配置值不能为空")
    private Integer sortNo = 0;

    @ApiModelProperty(value = "启用状态 EnableType 0-未启用 1-已启用")
    private String enableFlag = EnableTypeEnum.ENABLE.getCode();
    
}
